// 插件的目的 ：帮助我们更好的去操作cookie
import Cookies from 'js-cookie'

const TokenKey = 'hrsass-150'

export function getToken() {
  return Cookies.get(TokenKey)
  // localStorage.getItem(key)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
  // localStoarge.setItem(key,value)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
  // localStorage.removeItem(key)
}
